
from selenium import webdriver
import time
driver = webdriver.Chrome(r'D:\xuexi\chromedriver')
driver.maximize_window()
driver.get('http://hefen.10086.cn')
driver.find_element_by_xpath('/html/body/div[1]/div[1]/div/ul[2]/li/a[1]').click()#点击登陆
time.sleep(3)
driver.find_element_by_xpath('/html/body/div[2]/div/ul/li[2]/a').click()#点击普通登陆
time.sleep(2)
driver.find_element_by_id('nickNameOrMobile').send_keys(13510486701)
driver.find_element_by_id('pwd').send_keys('123456qqq')
driver.find_element_by_id('login_a').click()
driver.find_element_by_xpath('/html').click()








